package pet;

public class PetTest {
    public static void main(String[] args) {
        Dog x=new Dog();
        x.name="大黄";
        x.varieties="小土狗";
        x.weight=12.2;
        x.show();
        x.eat();
        x.sleep();
        System.out.println("*******************************");
        Cat x1=new Cat();
        x1.name="小黄";
        x1.varieties="狸花猫";
        x1.weight=5;
        x1.show();
        x.eat();
        x.sleep();
        System.out.println("*******************************");
        Parrot x2=new Parrot();
        x2.name="学学";
        x2.varieties="非洲鹦鹉";
        x2.weight=2;
        x2.show();
        x.eat();
        x.sleep();
    }
}
